package com.acme.bankapp.domain.bank;

/**
 * Created by Student on 20.08.2014.
 */
public class OverDraftLimitExceededException extends NotEnoughFundsException {


    private Account clientAccount;
    private double maxMoney;

    public OverDraftLimitExceededException() {
    }

    public OverDraftLimitExceededException(Account clientAccount) {
        super();
        this.clientAccount = clientAccount;
        maxMoney=clientAccount.maximumAmountToWithdraw();
    }

    public Account getClientAccount() {
        return clientAccount;
    }

    public double maxMoney() {
        return maxMoney;
    }
}
